#ifndef PROTOCOLMANAGER_H
#define PROTOCOLMANAGER_H

#include <QObject>
#include <QMap>
#include <QString>

enum Protocol
{
    CallRequest = 0,
    Accept,
    Refuse,
    Cancel,
    HangUp,
    TimeOut
};

class ProtocolManager : public QObject
{
    Q_OBJECT
public:
    explicit ProtocolManager(QObject *parent = nullptr);

    const QMap<Protocol, QString> &protocals();

    const QString protocolContent(Protocol p);

    const Protocol protocolName(const QString pc);

private:
    void setProtocols();

private:
    QMap<Protocol, QString> m_protocols;
};

#endif // PROTOCOLMANAGER_H
